package com.sc.nft.entity.vo;

import com.sc.nft.entity.vo.secondEquityProp.SecondEquityPropWaitPayOrderVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class EquityPoPonsolidatedPaymentDetailsVO {

    @ApiModelProperty("权益道具")
    private String firstTitle;

    @ApiModelProperty("图片")
    private String creationContent;

    @ApiModelProperty("总价")
    private String sumBuyPrice;

    @ApiModelProperty("权益道具id")
    private Long equityPropsId;

    @ApiModelProperty("订单列表")
    private List<SecondEquityPropWaitPayOrderVO> orderLists;

    public void setSumBuyPrice(BigDecimal sumBuyPrice) {
        this.sumBuyPrice = sumBuyPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
